package com.play;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;

public class ReadUrl {
//[箱包, 户外, 化妆品, 内衣, 鞋, 运动, 男装, 装饰品, 女装]
	public static Properties p = new Properties();
	//type 与url的逆向
	public static Map<String,String> rp = new HashMap<>();
	static{
		try {
			p.load(ClassLoader.getSystemResourceAsStream("urls.properties"));
			
			for (Object url : p.keySet()) {
				rp.put(p.getProperty(url+""), url+"");
			}
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	public static void main(String[] args) {
		System.out.println(ReadUrl.p.keySet());
	}
	
}
